#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


extern NSInteger compareContextObjectKeys(id obj1, id obj2, void *context);
extern NSInteger compareContextObjectNames(id obj1, id obj2, void *context);

@interface PIContextObject : NSObject
{
    NSInteger key;
    NSString* name;
    NSString* icon;
    UIColor* color;
    BOOL native;
}

@property (readonly, assign) NSInteger key; 
@property (readonly, retain) NSString* name; 
@property (readonly, retain) NSString* icon; 
@property (readonly, retain) UIColor* color; 
@property (readonly, assign, getter=isNative) BOOL native; 


+ (PIContextObject*)objectWithKey:(NSInteger)newKey name:(NSString*)newName icon:(NSString*)newIcon color:(UIColor*)newColor native:(BOOL)newNative;

@end


@interface NSArray (PIContextObject)

- (id)piContextObjectForKey:(NSInteger)key;
- (NSString*)piContextObjectString;

@end
